/**
 * Created by hong on 2017/7/25.
 */
$(document).ready(function () {
    $(".pagetop").load("pagetop.htm");
    $(".pagebottom").load("pagebottom.htm");

    $(".pagetop").load("pagetop.htm");
    $(".pagebottom").load("pagebottom.htm");
    var thisURL = document.URL;
    var getval = thisURL.split('?')[1];
    var showval = getval.split("=")[1];
    getdata(showval);
})


function getdata(str) {
    $.get("/getCoinDesByID?id="+str, function(result){
        console.log(result);
        //alert("data"+result.content[0].content);
        var app4 = new Vue({
            el: '#content',
            data: {
                todo: result.content
            }
        })
        var hh = $(".contentdetails").html();
        //alert(marked(hh));
        $(".contentdetails").html(marked(hh)) ;

    },"json");
}